package com.ruoyi.yanjing.domain.mqtt;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;
import java.util.List;

public class MqttSendData {


    private String cmd; /*clear_all，add_sensor，del_sensor，modify_sensor*/

    private String timestamp; // Timestamp in ISO 8601 format

    private List<SensorData> sensors; // List of sensors

    // Getters and Setters
    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public List<SensorData> getSensors() {
        return sensors;
    }

    public void setSensors(List<SensorData> sensors) {
        this.sensors = sensors;
    }

    // Nested class for sensor data
    public static class SensorData {


        private String sensor_id; /* 传感器 ID */


        private String over_temp_cfg; /* 报警温度配置 */

        public String getSensor_id() {
            return sensor_id;
        }

        public void setSensor_id(String sensor_id) {
            this.sensor_id = sensor_id;
        }

        public String getOver_temp_cfg() {
            return over_temp_cfg;
        }

        public void setOver_temp_cfg(String over_temp_cfg) {
            this.over_temp_cfg = over_temp_cfg;
        }
    }
}
